package com.topnav.mc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.topnav.mc.entity.base.BaseEntity;
import com.topnav.mc.validator.group.IAdd;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 围栏
 * @Author: kenny
 * @Date: 2023/11/13 10:04
 */
@Data
@Accessors(chain = true)
@TableName("mc_fence")
public class Fence extends BaseEntity {
    private static final long serialVersionUID = 5229096938457080937L;

    @NotEmpty(message = "围栏名称必填",groups={IAdd.class})
    private String fenceName;

    @NotNull(message = "组织机构必填",groups={IAdd.class})
    private Long orgId;

    @NotNull(message = "围栏类型必填",groups={IAdd.class})
    private Integer  fenceType; // 1，多边形，2园形，3矩形，4正文形，5星形

    private String coordinateSystem="WGS84"; //坐标系 WGS84，GCJ02 对应 EnumCoordinateSystem

    private String coordinate; //坐标点 Base64压缩的数组 [[[经并，]]]

/*    @TableField(exist = false)
    private List<FencePolygon> fencePolygons = new ArrayList<>();*/
}
